package com.atguigu.bean;

import com.atguigu.dao.BookDao;
import org.springframework.beans.factory.annotation.Autowired;

import javax.inject.Inject;

//@Data
public class Color {

	@Inject
//	@Qualifier("bookDao2")
	public BookDao bookDao2;

	private Car car;

	public void setBookDao2(BookDao bookDao2) {
		this.bookDao2 = bookDao2;
	}


	@Autowired
	public void setCar(Car car) {
		this.car = car;
	}

	@Override
	public String toString() {
		return "Color{" +
				"bookDao2=" + bookDao2 +
				", car=" + car +
				'}';
	}
}
